package com.jams.goodox.entity;

import java.io.Serializable;

/**
 * 场地选择场次列表实体
 * Created by jams_zhen on 2017/6/5.
 */

public class MeetSessionItemBean implements Serializable {
    private String address;//场地地址
    private String begin;//开始时间
    private String date;//场次日期
    private String dateId;
    private String end;
    private String enterpriseId;
    private String enterpriseName;
    private int hasBooked;
    private String orderId;
    private String placeId;
    private String placeTypeName;
    private int price;//	每小时价格
    private String scheduleId;//场次id
    private String timeCount;

    private boolean isCheck;

   public String getSessionDurationTime() {
        return begin + "-" + end;
    }

    public boolean isReserve() {
        return hasBooked == 1;
    }

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBegin() {
        return begin;
    }

    public void setBegin(String begin) {
        this.begin = begin;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getDateId() {
        return dateId;
    }

    public void setDateId(String dateId) {
        this.dateId = dateId;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public String getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(String enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
    }

    public int getHasBooked() {
        return hasBooked;
    }

    public void setHasBooked(int hasBooked) {
        this.hasBooked = hasBooked;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getPlaceId() {
        return placeId;
    }

    public void setPlaceId(String placeId) {
        this.placeId = placeId;
    }

    public String getPlaceTypeName() {
        return placeTypeName;
    }

    public void setPlaceTypeName(String placeTypeName) {
        this.placeTypeName = placeTypeName;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getScheduleId() {
        return scheduleId;
    }

    public void setScheduleId(String scheduleId) {
        this.scheduleId = scheduleId;
    }

    public String getTimeCount() {
        return timeCount;
    }

    public void setTimeCount(String timeCount) {
        this.timeCount = timeCount;
    }

    /**
     * 获取显示的价格单元x数量
     * @return 拼接好的字符串
     */
    public String getShowPriceUnitNumber(){
        if(price==0){
            return String.format("%s x%s","免费",timeCount);
        }else {
            return String.format("%s/%s x%s", price, "元/小时", timeCount);
        }
    }

}
